MailPoet\Subscribers\ImportExport\Import\Import B

Total Complexity 85
Dependencies 18
Dependents 1
Total lines 600
Lines of code 454
Logical lines of code 241
Comment lines 54
Methods 20
Properties 16

Methods 20

Method Rating Maintainability Complexity Lines of code
process()
A
40 13 63
validateSubscribersData()
A
44 13 46
createOrUpdateSubscribers()
A
44 8 47
createOrUpdateCustomFields()
A
44 8 46
validateDateTimeAttemptCustomFormat()
S
49 6 33
splitSubscribersData()
S
49 5 34
validateDateTime()
S
57 4 17
setSubscriptionStatusToDefault()
S
59 4 15
addSubscribersToSegments()
S
54 3 24
validateImportData()
S
57 3 17
__construct()
S
49 2 31
deleteExistingTrashedSubscribers()
S
60 3 14
addField()
S
63 2 11
addMissingRequiredFields()
S
70 2 6
getSubscribersFields()
S
66 2 9
getCustomSubscribersFields()
S
67 2 9
transformSubscribersData()
S
68 2 7
setSource()
S
64 1 10
setLinkToken()
S
64 1 10
synchronizeWPUsers()
S
72 1 5